//
//  MapRequest.h
//  Cycling
//
//  Created by 迟国强 on 2023/3/26.
//

#import "BaseRequest.h"

@interface MapRequest : BaseRequest
+ (void)getCyclingListWithPage:(int )page address:(NSString *)address day:(NSString *)day time:(NSString *)time result:(void(^)(NSDictionary *dic))resultBlock;
+ (void)searchRecordWithResult:(void(^)(NSDictionary *dic))resultBlock;

@end

/**
 导航请求
 */
@interface MapRequest (CSNavigationInMap)

/**
 开启导航
 */
+ (void)postStartNavigationWithParams:(NSDictionary *)params complete:(void(^)(BOOL success, NSInteger cid))complete;
/**
 骑行心跳轮询
 */
+ (void)postNavigatingDataWithParams:(NSDictionary *)params complete:(void(^)(BOOL success, NSString *reason))complete;
/**
 Post方式上传数据(仅返回一个成功或者失败的状态)
 */
+ (void)postMapRequestAndRequestStatusFoAPI:(NSString*)api andParams:(NSDictionary *)params complete:(void(^)(BOOL success, NSString *reason))complete;
+ (void)postMapRequestAndRequestStatusFoAPI:(NSString*)api andParams:(NSDictionary *)params autoShowSuccessNotice:(BOOL)willShow complete:(void(^)(BOOL success, NSString *reason))complete;

@end
